Optimal. Leaf size=125 \[ \frac {\sqrt {2} \text {ArcSin}\left (\frac {\sin (c+d x)}{1+\cos (c+d x)}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}-\frac {\text {ArcSin}\left (\frac {\sin (c+d x)}{\sqrt {1+\cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}+\frac {\sin (c+d x)}{d \sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 125, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {4307, 2857,
3061, 2860, 222, 2853} \begin {gather*} \frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {ArcSin}\left (\frac {\sin (c+d x)}{\cos (c+d x)+1}\right )}{d}-\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {ArcSin}\left (\frac {\sin (c+d x)}{\sqrt {\cos (c+d x)+1}}\right )}{d}+\frac {\sin (c+d x)}{d \sqrt {\cos (c+d x)+1} \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 2853
Rule 2857
Rule 2860
Rule 3061
Rule 4307
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {1+\cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {3}{2}}(c+d x)}{\sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {\sin (c+d x)}{d \sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}}-\frac {1}{2} \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-1+\cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {\sin (c+d x)}{d \sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}}-\frac {1}{2} \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {1+\cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx+\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \, dx\\ &=\frac {\sin (c+d x)}{d \sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (c+d x)}{\sqrt {1+\cos (c+d x)}}\right )}{d}-\frac {\left (\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (c+d x)}{1+\cos (c+d x)}\right )}{d}\\ &=\frac {\sqrt {2} \sin ^{-1}\left (\frac {\sin (c+d x)}{1+\cos (c+d x)}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}-\frac {\sin ^{-1}\left (\frac {\sin (c+d x)}{\sqrt {1+\cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}+\frac {\sin (c+d x)}{d \sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 1.64, size = 244, normalized size = 1.95 \begin {gather*} \frac {i \cos \left (\frac {1}{2} (c+d x)\right ) \left (\sqrt {2} e^{-\frac {1}{2} i (c+d x)} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} \left (i d x+\sinh ^{-1}\left (e^{i (c+d x)}\right )-2 \sqrt {2} \log \left (1+e^{i (c+d x)}\right )-\log \left (1+\sqrt {1+e^{2 i (c+d x)}}\right )+2 \sqrt {2} \log \left (1-e^{i (c+d x)}+\sqrt {2} \sqrt {1+e^{2 i (c+d x)}}\right )\right )+2 i \sqrt {\sec (c+d x)} \left (\sin \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {3}{2} (c+d x)\right )\right )\right )}{2 d \sqrt {1+\cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.23, size = 159, normalized size = 1.27
method | result | size |
default | \(\frac {\sqrt {2+2 \cos \left (d x +c \right )}\, \cos \left (d x +c \right ) \left (-1+\cos \left (d x +c \right )\right )^{3} \left (\arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right ) \sqrt {2}-\sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )\right ) \sqrt {2}}{2 d \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )^{6}}\) | \(159\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 125, normalized size = 1.00 \begin {gather*} -\frac {{\left (\sqrt {2} \cos \left (d x + c\right ) + \sqrt {2}\right )} \arctan \left (\frac {\sqrt {2} \sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - {\left (\cos \left (d x + c\right ) + 1\right )} \arctan \left (\frac {\sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - \sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right ) + d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {\cos {\left (c + d x \right )} + 1} \sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{\sqrt {\cos \left (c+d\,x\right )+1}\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________